
def processblock(block)

  if (block.match(/.*\?\?\?.*/) == nil)
    puts block
  end

end


tmpblock = ""

File.open("valgrindout.txt").each { |line|

  tmpblock << line

  if (line.match(/==\d+== [\r\n]/))
      processblock(tmpblock)
      tmpblock = ""
  end

}



